<template>
  <van-notice-bar
    :mode="$attrs.closable?'closeable':''"
    :color="$attrs.color"
    :background="$attrs.bgColor"
    v-bind="$attrs"
    class="pho-notice"
    :style="newStyle"
  >
    <div class="pho-notice--content">
      <i style="margin-right:8px" v-if="$attrs.icon" :class="$attrs.icon" class="el-alert__icon"></i>
      <span>{{value}}</span>
    </div>
  </van-notice-bar>
</template>

<script>
import { comMixin } from "../../../utils/comMixins";
export default {
  mixins: [comMixin],
  name: "phone-form-notice",
  props: {
    value: {
      type: [String, Number],
      default: "",
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.pho-notice {
  .pho-notice--content {
    display: flex;
    align-items: center;
    word-break: break-all;
  }
  // height: auto;
}
</style>